package apps;

public class Employee
{
	private String name;
	private double salary;
	
	public void showData()
	{
		System.out.println("Name: " + this.name);
		System.out.println("Gehalt: " + this.salary);
		System.out.println("Bonus: " + this.calculateBonus());
	}
	
	public double calculateBonus()
	{
		return this.salary * 0.1;
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public double getSalary()
	{
		return this.salary;
	}
	
	public void setSalary(double value)
	{
		this.salary = value;
	}
}
